// 文章相关仓库
export default {
  namespaced: true,
  state () {
    return {
      articleDeatil: {}
    }
  },
  mutations: {
    updateArticle (state, data) {
      state.articleDeatil = data
    },
    // 修改喜爱状态
    updateAttitude (state, attitude) {
      state.articleDeatil.attitude = attitude
    },
    // 修改收藏
    updateCollect (state, isCollect) {
      state.articleDeatil.is_collected = isCollect
    }
  }
}
